import login from "./route/login.js";
import shop from "./route/shop.js";
import system from "./route/system.js";
import menber from "./route/menber.js";
import operation from "./route/operation.js";

export default [{
        path: "/",
        redirect: "/home/shop/allOrder/list"
    }, {
        path: "/home/shop/allOrder",
        redirect: "/home/shop/allOrder/list"
    },
    login,
    {
        path: "/home",
        component: function(resolve) {
            require(["./views/home.vue"], resolve);
        },
        children: [
            shop,
            system,
            menber,
            operation
        ]
    },
    {
        // 404
        path: "/404",
        component: function(resolve) {
            require(["./views/404.vue"], resolve);
        }
    },
    {
        path: "*",
        redirect: "/404"
    },
];